import React, { Component } from 'react'
import Son from './Son'

export default class Father extends Component {


  change = arg => alert(arg)

  render() {
    return (
      <div>
        <Son
        change = {this.change} // 将父组件中的change 方法传到子组件
        />
      </div>
    )
  }
}
